import request from '@/utils/request'

// 查询品牌列表
export function findBrandList(data) {
  return request({
    url: '/product/brand/findBrandList',
    method: 'post',
    data
  })
}

export function updateFactoryStatus(ids, factoryStatus) {
  return request({
    url: '/product/brand/updateFactoryStatus?ids=' + ids + '&factoryStatus=' + factoryStatus,
    method: 'post',
  })
}

export function updateShowStatus(ids, showStatus) {
  return request({
    url: '/product/brand/updateShowStatus?ids=' + ids + '&showStatus=' + showStatus,
    method: 'post'
  })
}
export function findBrandById(id) {
  return request({
    url: '/product/brand/findBrandById?id=' + id,
    method: 'post'
  })
}


export function updateBrand(data) {
  return request({
    url: '/product/brand/updateBrand/',
    method: 'post',
    data
  })
}


export function addBrand(data) {
  return request({
    url: '/product/brand/addBrand/',
    method: 'post',
    data
  })
}
